package org.example.mapper;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.example.dto.CropPageQueryDto;
import org.example.dto.CropSaveDto;
import org.example.dto.GrowDto;
import org.example.vo.CropVo;

/**
 * @author 19816
 * @description 针对表【t_crop】的数据库操作Mapper
 * @createDate 2024-05-26 19:41:53
 * @Entity org.example.domain.Crop
 */
@Mapper
public interface CropMapper {

    Page<CropVo> listAll(CropPageQueryDto cropDto);

    void saveCrop(CropSaveDto cropSaveDto);

    @Delete("delete from t_crop where id = #{id}")
    void delCrop(String id);

    void updateStatus(GrowDto growLogDto);
}




